﻿using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using System.Linq;
using System.Text;
using KduneeShaders;
using Microsoft.Xna.Framework;

namespace ShaderApp
{
    class RimExample : ShaderExample
    {
        override internal void LoadContent(ContentManager content)
        {
            Model model = content.Load<Model>(@"Content\Models\heroTylkoSiatka");

            Texture2D diffuse = content.Load<Texture2D>(@"Content\Textures\pinkblue_diffuse");

            RimShader newRim = new RimShader(content, diffuse);

            newRim.Parameters["lightAmbient"].SetValue(new Vector4(0.1f, 0.1f, 0.1f, 1.0f));
            newRim.MaterialAmbient = new Vector4(1.0f, 1.0f, 1.0f, 1.0f);
            newRim.MaterialDiffuse = new Vector4(3.0f, 3.0f, 3.0f, 1.0f);
            newRim.Shininess = 20;

            objects.Add(new ShaderedObject(newRim, model));
        }
    }
}
